/*
* @Author: Administrator
* @Date:   2019-08-18 18:33:24
* @Last Modified by:   Administrator
* @Last Modified time: 2019-08-18 18:36:41
*/
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/movie', {useNewUrlParser: true});

const Cat = mongoose.model('Cat', { 

	name: String,
	age: Number
	 });

var cat1 = new Cat({name: 'andy', age: 23});
cat1.save();

